package com.ruoyi.report_jl.domain.vo;

import java.math.BigDecimal;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.utils.BigDecimalUtil;
import lombok.Data;
import java.util.Date;



/**
 * 粗集料筛分记录（水筛法）详情视图对象 report_jl_cjlsfssfjlb_ba_detail
 *
 * @author tll
 * @date 2024-05-22
 */
@Data
@ExcelIgnoreUnannotated
public class ReportJlCjlsfssfjlbBaDetailVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long detailId;

    /**
     * 主表id
     */
    @ExcelProperty(value = "主表id")
    private Long excelId;

    /**
     * 筛分后总质量∑mi（g）分组1
     */
    @ExcelProperty(value = "筛分后总质量∑mi", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "g=")
    private BigDecimal shaifhzzlItem1;

    /**
     * 扣除损耗后试样总质量分组1
     */
    @ExcelProperty(value = "扣除损耗后试样总质量分组1")
    private BigDecimal koucshsyzzlItem1;

    /**
     * 损耗率（%）分组1
     */
    @ExcelProperty(value = "损耗率", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private BigDecimal sunhlItem1;

    /**
     * 筛分后总质量∑mi（g）分组2
     */
    @ExcelProperty(value = "筛分后总质量∑mi", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "g=")
    private BigDecimal shaifhzzlItem2;

    /**
     * 扣除损耗后试样总质量分组2
     */
    @ExcelProperty(value = "扣除损耗后试样总质量分组2")
    private BigDecimal koucshsyzzlItem2;

    /**
     * 损耗率（%）分组2
     */
    @ExcelProperty(value = "损耗率", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private BigDecimal sunhlItem2;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 筛孔尺寸(mm)
     */
    @ExcelProperty(value = "筛孔尺寸(mm)")
    private String shaikcc;

    /**
     * 称量次数分组1
     */
    @ExcelProperty(value = "称量次数分组1")
    private String chenglcsItem1;

    /**
     * 质量m3分组1
     */
    @ExcelProperty(value = "质量m3分组1")
    private BigDecimal zhil3Item1;

    /**
     * 质量m4分组1
     */
    @ExcelProperty(value = "质量m4分组1")
    private BigDecimal zhil4Item1;

    /**
     * 筛上质量mi(g)分组1
     */
    @ExcelProperty(value = "筛上质量mi(g)分组1")
    private BigDecimal shaiszlItem1;

    /**
     * 分计筛余(%)分组1
     */
    @ExcelProperty(value = "分计筛余(%)分组1")
    private BigDecimal fenjsyItem1;

    /**
     * 累计筛余(%)分组1
     */
    @ExcelProperty(value = "累计筛余(%)分组1")
    private BigDecimal leijsyItem1;

    /**
     * 通过百分率(%)分组1
     */
    @ExcelProperty(value = "通过百分率(%)分组1")
    private BigDecimal tonggbflItem1;

    /**
     * 称量次数分组2
     */
    @ExcelProperty(value = "称量次数分组2")
    private String chenglcsItem2;

    /**
     * 质量m3分组2
     */
    @ExcelProperty(value = "质量m3分组2")
    private BigDecimal zhil3Item2;

    /**
     * 质量m4分组2
     */
    @ExcelProperty(value = "质量m4分组2")
    private BigDecimal zhil4Item2;

    /**
     * 筛上质量mi(g)分组2
     */
    @ExcelProperty(value = "筛上质量mi(g)分组2")
    private BigDecimal shaiszlItem2;

    /**
     * 分计筛余(%)分组2
     */
    @ExcelProperty(value = "分计筛余(%)分组2")
    private BigDecimal fenjsyItem2;

    /**
     * 累计筛余(%)分组2
     */
    @ExcelProperty(value = "累计筛余(%)分组2")
    private BigDecimal leijsyItem2;

    /**
     * 通过百分率(%)分组2
     */
    @ExcelProperty(value = "通过百分率(%)分组2")
    private BigDecimal tonggbflItem2;

    /**
     * 平均通过百分率(%)
     */
    @ExcelProperty(value = "平均通过百分率(%)")
    private BigDecimal tonggbflPjz;
    /**
     * 规定级配范围%最小值
     */
    @ExcelProperty(value = "规定级配范围%最小值")
    private BigDecimal guidfwMin;
    /**
     * 规定级配范围%最大值
     */
    @ExcelProperty(value = "规定级配范围%最大值")
    private BigDecimal guidfwMax;

    public void setShaifhzzlItem1(BigDecimal shaifhzzlItem1) {
        this.shaifhzzlItem1 = BigDecimalUtil.stpTrailZero(shaifhzzlItem1);
    }

    public void setKoucshsyzzlItem1(BigDecimal koucshsyzzlItem1) {
        this.koucshsyzzlItem1 = BigDecimalUtil.stpTrailZero(koucshsyzzlItem1);
    }

    public void setSunhlItem1(BigDecimal sunhlItem1) {
        this.sunhlItem1 = BigDecimalUtil.stpTrailZero(sunhlItem1);
    }

    public void setShaifhzzlItem2(BigDecimal shaifhzzlItem2) {
        this.shaifhzzlItem2 = BigDecimalUtil.stpTrailZero(shaifhzzlItem2);
    }

    public void setKoucshsyzzlItem2(BigDecimal koucshsyzzlItem2) {
        this.koucshsyzzlItem2 = BigDecimalUtil.stpTrailZero(koucshsyzzlItem2);
    }

    public void setSunhlItem2(BigDecimal sunhlItem2) {
        this.sunhlItem2 = BigDecimalUtil.stpTrailZero(sunhlItem2);
    }

    public void setZhil3Item1(BigDecimal zhil3Item1) {
        this.zhil3Item1 = BigDecimalUtil.stpTrailZero(zhil3Item1);
    }

    public void setZhil4Item1(BigDecimal zhil4Item1) {
        this.zhil4Item1 = BigDecimalUtil.stpTrailZero(zhil4Item1);
    }

    public void setShaiszlItem1(BigDecimal shaiszlItem1) {
        this.shaiszlItem1 = BigDecimalUtil.stpTrailZero(shaiszlItem1);
    }

    public void setFenjsyItem1(BigDecimal fenjsyItem1) {
        this.fenjsyItem1 = BigDecimalUtil.stpTrailZero(fenjsyItem1);
    }

    public void setLeijsyItem1(BigDecimal leijsyItem1) {
        this.leijsyItem1 = BigDecimalUtil.stpTrailZero(leijsyItem1);
    }

    public void setTonggbflItem1(BigDecimal tonggbflItem1) {
        this.tonggbflItem1 = BigDecimalUtil.stpTrailZero(tonggbflItem1);
    }

    public void setZhil3Item2(BigDecimal zhil3Item2) {
        this.zhil3Item2 = BigDecimalUtil.stpTrailZero(zhil3Item2);
    }

    public void setZhil4Item2(BigDecimal zhil4Item2) {
        this.zhil4Item2 = BigDecimalUtil.stpTrailZero(zhil4Item2);
    }

    public void setShaiszlItem2(BigDecimal shaiszlItem2) {
        this.shaiszlItem2 = BigDecimalUtil.stpTrailZero(shaiszlItem2);
    }

    public void setFenjsyItem2(BigDecimal fenjsyItem2) {
        this.fenjsyItem2 = BigDecimalUtil.stpTrailZero(fenjsyItem2);
    }

    public void setLeijsyItem2(BigDecimal leijsyItem2) {
        this.leijsyItem2 = BigDecimalUtil.stpTrailZero(leijsyItem2);
    }

    public void setTonggbflItem2(BigDecimal tonggbflItem2) {
        this.tonggbflItem2 = BigDecimalUtil.stpTrailZero(tonggbflItem2);
    }

    public void setTonggbflPjz(BigDecimal tonggbflPjz) {
        this.tonggbflPjz = BigDecimalUtil.stpTrailZero(tonggbflPjz);
    }

    public void setGuidfwMin(BigDecimal guidfwMin) {
        this.guidfwMin = ObjectUtils.isNotEmpty(BigDecimalUtil.stpTrailZero(guidfwMin))
            ? BigDecimalUtil.stpTrailZero(guidfwMin).setScale(0, BigDecimal.ROUND_HALF_UP)
            : null;
    }

    public void setGuidfwMax(BigDecimal guidfwMax) {
        this.guidfwMax = ObjectUtils.isNotEmpty(BigDecimalUtil.stpTrailZero(guidfwMax))
            ? BigDecimalUtil.stpTrailZero(guidfwMax).setScale(0, BigDecimal.ROUND_HALF_UP)
            : null;
    }
}
